public class Solution {
    public static void main(String[] args) {
 	Solution s = new Solution();

        if (s.isPalindrome(args[0]))
 		System.out.println("Yes");
	else
		System.out.println("No");
	return;
    }

    public boolean isPalindrome(String s) {
        if (s.length() == 0)
            return true;
            
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < s.length(); ++i) {
            if (s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')
                sb.append(Character.toLowerCase(s.charAt(i)));
            else if (s.charAt(i) >= 'a' && s.charAt(i) <= 'z' || s.charAt(i) >= '0' && s.charAt(i) <= '9')
                sb.append(s.charAt(i));
        }

	System.out.println(sb);
        
        StringBuffer sb2 = new StringBuffer();
        for (int i = sb.length() - 1; i >= 0; --i)
            sb2.append(sb.charAt(i));
        
        if (sb.toString().equals(sb2.toString()))
            return true;
        return false;
    }
}
